package com.kang.vo;

import com.kang.bean.bot.Population;
import lombok.Data;

/**
 * @program: service
 * @description: 人员分布
 * @author: K.faWu
 * @create: 2022-06-28 14:46
 **/
@Data
public class PopulationVo extends Population {
    //防守士兵上限
    private Integer soldierMax;
    //伐木工上限
    private Integer woodMax;
    //矿工上限
    private Integer minerMax;;

    public PopulationVo(){}

    public PopulationVo(String accountCode, String groupCode){
        super(accountCode, groupCode);
    }


    public Integer getSoldierMax() {
        if (soldierMax == null){
            this.soldierMax = 0;
        }
        return soldierMax;
    }

    public void setSoldierMax(Integer soldierMax) {
        this.soldierMax = soldierMax;
    }

    public Integer getWoodMax() {
        if (woodMax == null){
            this.woodMax = 0;
        }
        return woodMax;
    }

    public void setWoodMax(Integer woodMax) {
        this.woodMax = woodMax;
    }

    public Integer getMinerMax() {
        if (minerMax == null){
            this.minerMax = 0;
        }
        return minerMax;
    }

    public void setMinerMax(Integer minerMax) {
        this.minerMax = minerMax;
    }
}
